<%@ page language="java" contentType="text/html; charset=UTF-8" pageEncoding="UTF-8"%>
<%@ taglib uri="http://struts.apache.org/tags-bean" prefix="bean"%> 
<%@ taglib uri="http://struts.apache.org/tags-html" prefix="html"%>
<%@ page import="dao.User"%>
<%@ page import="service.*"%>
<%@ page import="java.util.*"%>
<%
String path = request.getContextPath();
String basePath = request.getScheme()+"://"+request.getServerName()+":"+request.getServerPort()+path+"/";
%>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<base href="<%=basePath%>">
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<link href="css/frame.css" rel="stylesheet" type="text/css" />
<title>测试框架</title>
<meta http-equiv="pragma" content="no-cache">
<meta http-equiv="cache-control" content="no-cache">


</head>

<body>

<!-- 页头 左边栏 -->
<%@ include file="/common/header.jsp" %>
<%@ include file="/common/left-nav.jsp" %>
<script>setLeftFrame(1,1);</script>

<!-- 此处添加本页代码 -->
<div class="mainBlock">

 	<% if (null!=request.getAttribute("message")){%>
	<%=request.getAttribute("message")%>.
	<%  };%>
	<% User user = (User)request.getSession().getAttribute( "SESSION_USER" );
		if (null!=user){%>
	welcome <%=user.getUsername()%> !
	<%  } else {%>
	not login!
	<%  } %>

</div>

<!-- 页脚 -->
<%@ include file="/common/footer.jsp" %>
</body>
</html>